package com.slz3.business.module.memberManagement.memShoppingCar.service;

import com.slz3.business.module.memberManagement.memShoppingCar.domain.MemShoppingCar;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.util.MultiValueMap;

import java.util.List;
import java.util.Optional;
import java.util.UUID;
import java.util.stream.Stream;

/**
 * 非事务型 service
 */
public interface MemShoppingCarService {

    MemShoppingCar save(MemShoppingCar memShoppingCar);

    Page<MemShoppingCar> page(MultiValueMap<String,String> queryParams);

    MemShoppingCar modify(MemShoppingCar memShoppingCar);

    Optional<MemShoppingCar> single(UUID uuid);

    List<MemShoppingCar> findAllByUuids(Iterable<UUID> uuids);

    List<MemShoppingCar> delete(List<MemShoppingCar> memShoppingCarList);
}
